package org.dtrd.config.wechat.entity.request.officialaccount;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author 萧
 * @date:2021-09-26 3:00 下午
 **/
@Data
@ApiModel(value = "公众号授权登陆")
public class WxOfficialAccountsLoginRequest {

    @NotBlank
    @ApiModelProperty(name = "登录Code", required = true)
    private String jsCode;

    @NotNull
    @Range(min = 1, max = 2)
    @ApiModelProperty(name = "身份", notes = "1-患者，2-医生")
    private Integer identity;

}
